import type { Settings as LayoutSettings } from '@ant-design/pro-components';

// 统一的主题配置接口
export interface ThemeConfig {
  footer?: {
    copyright: string;
  };
  welcome?: {
    bg: string;
  };
  login?: {
    bg: string;
  };
  user?: {
    avatar: string;
  };
  menu?: {
    colorBgContainer?: string; // 菜单背景色
    colorText?: string; // 菜单文字颜色
    colorTextSecondary?: string; // 菜单次要文字颜色
    colorPrimary?: string; // 菜单主色调
    colorBgElevated?: string; // 菜单悬浮背景色
    colorBorder?: string; // 菜单边框颜色
  };
  layout?: Partial<LayoutSettings> & {
    logo?: string;
    token?: {
      sider?: {
        colorTextMenuSelected?: string;
        colorMenuBackground?: string;
        colorTextMenuTitle?: string;
        colorTextMenu?: string;
        colorTextMenuItemHover?: string;
        colorBgMenuItemCollapsedElevated?: string;
        colorTextMenuActive?: string;
        colorBgMenuItemSelected?: string;
      };
      header?: {
        colorBgHeader?: string;
        colorTextRightActionsItem?: string;
        colorHeaderTitle?: string;
        colorTextMenu?: string;
      };
    };
  };
}
